<?php
$username = "work";
$password = "work";
$server = "localhost";
$dbname = "sunsan";

$db_connect = mysql_connect($server, $username, $password);
mysql_select_db($dbname, $db_connect);
mysql_query("SET NAMES cp1251")
?>